/*
 * Copyright (c) 2020, China Mobile Communications Group Co.,Ltd.
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2020-12-03     cmcc       the first version
 */
#ifndef NINESKY_UTIL_HTTPUTIL_H_
#define NINESKY_UTIL_HTTPUTIL_H_

#include <cJSON.h>

cJSON *http_post_urlencode(char *url, char *key, char *content);

cJSON *http_post_file_base64(char *url, char *fileKey, char *filePath);

cJSON *http_post_content_base64(char *url, char *fileKey, char *contentBuffer, long contentSize);

cJSON *http_post_file_multipart_form(char *url, char *filePath, char **argName, char **argValue, int argCount);

cJSON *http_post_content_multipart_form(char *url, char *contentBuffer, long contentSize,
                                        char *fileName, char **argName, char **argValue, int argCount);

#endif /* NINESKY_UTIL_HTTPUTIL_H_ */
